package eSn.DB;
// TODO eSn.DB.DBConf未完成
import eSn.File.PropertiesFile;
import eSn.Web.Core.*;

public class DBConf {

	private DBService DBType;
	private String DriverName;

	private String Host;
	private String Port;
	private String DBName;

	private String UserName;
	private String PassWord;

	private String FileName;
	private String OLEPassWord;

	/***
	 * 以WEB默认的配置初始化<br />
	 * JSPManager.getWebClassPath下的jdbc.properties<br />
	 * 必需有 jdbc.driverClassName
	 */
	public DBConf(JSPManager jsp) {
		InitFile(jsp.getWebClassPath()+ "\\jdbc.properties");
	}

	public DBConf(String FileName){
		InitFile(FileName);
	}
	
	private void InitFile(String FileName) {

		
	}

	public DBService getDBType() {
		return DBType;
	}

	public void setDBType(DBService dBType) {
		DBType = dBType;
	}

	public String getDriverName() {
		return DriverName;
	}

	public void setDriverName(String driverName) {
		DriverName = driverName;
	}

	public String getHost() {
		return Host;
	}

	public void setHost(String host) {
		Host = host;
	}

	public String getPort() {
		return Port;
	}

	public void setPort(String port) {
		Port = port;
	}

	public String getDBName() {
		return DBName;
	}

	public void setDBName(String dBName) {
		DBName = dBName;
	}

	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}

	public String getPassWord() {
		return PassWord;
	}

	public void setPassWord(String passWord) {
		PassWord = passWord;
	}

	public String getFileName() {
		return FileName;
	}

	public void setFileName(String fileName) {
		FileName = fileName;
	}

	public String getOLEPassWord() {
		return OLEPassWord;
	}

	public void setOLEPassWord(String oLEPassWord) {
		OLEPassWord = oLEPassWord;
	}

}
